/**
 * Created by 李伟伟 on 2019/10/2.
 */
import req from './index';

const BASE_URL = '/api';
// //用户登录接口
export const login=(param)=>{return req(param,`${BASE_URL}/user/userLogin`,"post")};

//用户注册
export const userRegister = (param)=>{return req(param,`${BASE_URL}/user/userRegister`,"post")};

//根据角色id查询该角色下面的所有用户
export const getAllUserByGroupId = (param)=>{return req(param,`${BASE_URL}/user/getAllUserByGroupId`,"post")};

//根据id查询指定的用户信息
export const getUserById = (param)=>{return req(param,`${BASE_URL}/user/getUserById`,"post")};

//根据用户id修改数据
export const updateUserByUserId = (param)=>{return req(param,`${BASE_URL}/user/updateUserByUserId`,"post")};

//修改用户的密码
export const updateUserPasswordById=(param)=>{return req(param,`${BASE_URL}/user/updateUserPasswordById`,"post")};

//条件查询用户信息
export const findUserByCondition = (param)=>{return req(param,`${BASE_URL}/user/findUserByCondition`,"post")};

//添加用户
export const addUser = (param)=>{return req(param,`${BASE_URL}/user/addUser`,"post")};

//删除用户
export const deleteUserById = (param)=>{return req(param,`${BASE_URL}/user/deleteUser`,"post")};

//退出系统
export const userExitSystem = (param)=>{return req(param,`${BASE_URL}/user/userExitSystem`,"post")};
